package com.lwlk.zdk.mapper.task;

import com.lwlk.zdk.model.task.pwTaskEnterpriseAssessmentStatistics;
import com.lwlk.zdk.model.task.pwTaskEnterpriseAssessmentStatisticsExample;
import com.lwlk.zdk.model.task.pwTaskPlatformAssessmentStatistics;
import com.lwlk.zdk.model.task.pwTaskRegionAssessmentStatistics;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface pwTaskEnterpriseAssessmentStatisticsMapper {
    int countByExample(pwTaskEnterpriseAssessmentStatisticsExample example);

    int deleteByExample(pwTaskEnterpriseAssessmentStatisticsExample example);

    int insert(pwTaskEnterpriseAssessmentStatistics record);

    int insertSelective(pwTaskEnterpriseAssessmentStatistics record);

    List<pwTaskEnterpriseAssessmentStatistics> selectByExample(pwTaskEnterpriseAssessmentStatisticsExample example);

    int updateByExampleSelective(@Param("record") pwTaskEnterpriseAssessmentStatistics record, @Param("example") pwTaskEnterpriseAssessmentStatisticsExample example);

    int updateByExample(@Param("record") pwTaskEnterpriseAssessmentStatistics record, @Param("example") pwTaskEnterpriseAssessmentStatisticsExample example);

    int insertEidNull(@Param("eId") String eId, @Param("describe") String describe, @Param("enterpriseName") String enterpriseName);

    List<pwTaskEnterpriseAssessmentStatistics> selectDim(@Param("type") Integer type, @Param("theInspectionTime") String theInspectionTime,@Param("assessGradeId")Integer assessGradeId,@Param("status")Integer status);

    List<Map<String, Object>> selectStatus(@Param("id") Integer id, @Param("theInspectionTime") String theInspectionTime, @Param("assessPeriod") String assessPeriod);

    int updateRanking(@Param("pId") int pId, @Param("rank") int rank);
}